import pandas as pd

# d = {'A': [1, 2, 3], 'B': 2, 'C': 3}
# s1 = pd.Series(d)
# print(s1.name)
# print(s1.index)
# print(s1.values)
# s1.to_excel('./series.xlsx')
#
# s1 = pd.Series([1, 2, 3], index=['A', 'B', 'C'])
# print(s1.name)
# print(s1.index)
# print(s1.values)
# s1.to_excel('./series2.xlsx')


s1 = pd.Series([1, 2, 3], index=[1,2,3],name='A')
s2 = pd.Series([10, 20, 30], index=[1,2,3], name='B')
s3 = pd.Series([100, 200, 300], index=[2,3,4], name='C')
df = pd.DataFrame({s1.name: s1, s2.name: s2, s3.name: s3})
print(df)

df = pd.DataFrame([s1, s2, s3])
print(df)
